using System;
using System.Collections;
using System.Collections.Generic;
using UI;
using UnityEngine;
using UnityEngine.PlayerLoop;
using UnityEngine.UI;

public class ForeToSelect:MonoBehaviour
{
  private UI_ScenarioPanel UIScenarioPanel;

  private void Start()
  {
    UIScenarioPanel=GameObject.Find("ScenarioPanel(Clone)").GetComponent<UI_ScenarioPanel>();
  }

  private void Update()
  {
    if (UIScenarioPanel.scenarioFinish)
    {
      UIController.Instance.Show<UI_SelectPanel>();
      Destroy(gameObject);
    }
  }
}
